package com.example.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * 自定义异常
 * 运行时异常
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CustomerException extends RuntimeException{
    private String code;
    private String msg;

    public CustomerException(String msg) {
        this.code = "500";
        this.msg = msg;
    }
}
